package cn.bob.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BuyNumDto {
    @NotNull(message = "电影的id不能为空！！")
    private Long id;
    @NotNull(message = "购买的数量不能为空！！")
    private Integer num;
    private Long userId;
}
